﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Grind.Master" AutoEventWireup="true" CodeBehind="Administrator.aspx.cs" Inherits="GWA.Administrator" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <cc1:Accordion ID="Accordion1" runat="server" HeaderCssClass="headzor" HeaderSelectedCssClass="selex" ContentCssClass="contentz">
        <Panes>
            <cc1:AccordionPane runat="server" ID="CreateUser">
                <Header><h1>Create User</h1></Header>
                <Content>
                    <asp:CreateUserWizard LoginCreatedUser="false" FinishDestinationPageUrl="~/Admin/Administrator.aspx" ID="CreateUserWizard1" runat="server" OnCreatedUser="CreateUserWizard1_CreatedUser">
                        <WizardSteps>
                            <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
                                <ContentTemplate>
                                     <div style="margin-left: 215px; margin-bottom: 10px;">
                                        <table style="text-align: right;">
                                            <tr><td colspan="2" align="center">Create a user:</td></tr>
                                            <tr>
                                                <td style="width: 105px;">User Name:</td>
                                                <td><asp:TextBox ID="UserName" runat="server"></asp:TextBox></td>
                                             </tr>
                                             <tr>
                                                <td style="width: 105px;">Password:</td>
                                                <td><asp:TextBox ID="Password" TextMode="Password" runat="server"></asp:TextBox></td>
                                             </tr>
                                             <tr>
                                                <td style="width: 130px;">Confirm Password:</td>
                                                <td><asp:TextBox ID="ConfirmPassword" TextMode="Password" runat="server"></asp:TextBox></td>
                                             </tr>
                                             <tr>
                                                <td style="width: 105px;">Email:</td>
                                                <td><asp:TextBox ID="Email" runat="server"></asp:TextBox></td>
                                             </tr>
                                        </table>
                                        </div>
                                        <div style="margin-top: -100px; margin-left: 65px; margin-bottom: 10px;">
                                            <asp:Panel ID="pnlRoles" runat="server" GroupingText="Role:">
                                                <asp:RadioButtonList ID="rdbRoles" runat="server">
                                                    <asp:ListItem Text="Administrator" />
                                                    <asp:ListItem Text="Doctor" />
                                                    <asp:ListItem Text="Nurse" />
                                                </asp:RadioButtonList>
                                            </asp:Panel>
                                        </div>
                                    </ContentTemplate>
                            </asp:CreateUserWizardStep>
                            <asp:CompleteWizardStep>
                                <ContentTemplate>
                                    <div style="margin: 0 auto;">You have successfully created an account. <br />
                                        <asp:Button ID="btnCont" runat="server" Text="Continue" OnClick="btnCont_OnClick" />
                                    </div>
                                </ContentTemplate>
                            </asp:CompleteWizardStep>
                        </WizardSteps>
                    </asp:CreateUserWizard>
                </Content>
            </cc1:AccordionPane>
            <cc1:AccordionPane runat="server" ID="RemoveUser">
                <Header><h1>Remove User</h1></Header>
                <Content>
                    <div style="margin-left: 25px;">
                      <asp:Panel id="NavigationPanel" Visible="false" runat="server">
                        <table border="0" cellpadding="3" cellspacing="3">
                          <tr>
                            <td style="width:100">Page <asp:Label id="CurrentPageLabel" runat="server" />
                                of <asp:Label id="TotalPagesLabel" runat="server" /></td>
                            <td style="width:60"><asp:LinkButton id="PreviousButton" Text="< Prev"
                                                OnClick="PreviousButton_OnClick" runat="server" /></td>
                            <td style="width:60"><asp:LinkButton id="NextButton" Text="Next >"
                                                OnClick="NextButton_OnClick" runat="server" /></td>
                          </tr>
                        </table>
                      </asp:Panel>
                    <asp:GridView ID="UserGrid" runat="server" AutoGenerateColumns="false" Width="550px">
                        <HeaderStyle CssClass="HeaderStyle" />
                        <Columns>
                            <asp:BoundField DataField="UserName" HeaderText="User Name" />
                            <asp:BoundField DataField="Email" HeaderText="Email" />
                            <asp:BoundField DataField="LastLoginDate" HeaderText="Last Login Date" />
                            <asp:TemplateField HeaderText="Delete?">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkDelete" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                        <asp:Button ID="btnDeleteUsers" runat="server" Text="Delete Selected Users" OnClick="btnDeleteUsers_Click" />
                    </div>
                </Content>
            </cc1:AccordionPane>
            <cc1:AccordionPane runat="server" ID="ImportCSV">
                <Header><h1>ImportCSV</h1></Header>
                <Content>
                    <div>
                        <asp:CheckBox ID="chkHeaders" runat="server" Text="First column is the column name" />
                        <br />
                        <asp:FileUpload ID="FileUpload1" runat="server" /><br />
                        <asp:Button ID="btnImportSubmit" runat="server" Text="Submit" OnClick="btnImportSubmit_Click" />
                    </div>
                    
                    <asp:Panel ID="Panel2" runat="server" Visible="false">
                        <table>
                            <tr>
                                <td><asp:Label ID="lblFirstRow" runat="server" Text="Label"></asp:Label></td>
                                <td>
                                    <asp:DropDownList ID="ddlFirstRow" runat="server">
                                        <asp:ListItem Text="FirstName" />
                                        <asp:ListItem Text="LastName" />
                                        <asp:ListItem Text="Address" />
                                        <asp:ListItem Text="City" />
                                        <asp:ListItem Text="State" />
                                        <asp:ListItem Text="Zip" />
                                        <asp:ListItem Text="Phone" />
                                        <asp:ListItem Text="Healthcare" />
                                        <asp:ListItem Text="Diagnosis" />
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblSecondRow" runat="server" Text="Label"></asp:Label></td>
                                <td>
                                    <asp:DropDownList ID="ddlSecondRow" runat="server">
                                        <asp:ListItem Text="FirstName" />
                                        <asp:ListItem Text="LastName" />
                                        <asp:ListItem Text="Address" />
                                        <asp:ListItem Text="City" /> 
                                        <asp:ListItem Text="State" />
                                        <asp:ListItem Text="Zip" />   
                                        <asp:ListItem Text="Phone" />
                                        <asp:ListItem Text="Healthcare" />
                                        <asp:ListItem Text="Diagnosis" />                    
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblThirdRow" runat="server" Text="Label"></asp:Label></td>
                                <td>
                                    <asp:DropDownList ID="ddlThirdRow" runat="server">
                                        <asp:ListItem Text="FirstName" />
                                        <asp:ListItem Text="LastName" />
                                        <asp:ListItem Text="Address" />
                                        <asp:ListItem Text="City" /> 
                                        <asp:ListItem Text="State" />
                                        <asp:ListItem Text="Zip" />     
                                        <asp:ListItem Text="Phone" />
                                        <asp:ListItem Text="Healthcare" />
                                        <asp:ListItem Text="Diagnosis" />                  
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblFourthRow" runat="server" Text="Label"></asp:Label></td>
                                <td>
                                    <asp:DropDownList ID="ddlFourthRow" runat="server">
                                        <asp:ListItem Text="FirstName" />
                                        <asp:ListItem Text="LastName" />
                                        <asp:ListItem Text="Address" />
                                        <asp:ListItem Text="City" /> 
                                        <asp:ListItem Text="State" />
                                        <asp:ListItem Text="Zip" />     
                                        <asp:ListItem Text="Phone" />
                                        <asp:ListItem Text="Healthcare" />
                                        <asp:ListItem Text="Diagnosis" />                  
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblFifthRow" runat="server" Text="Label"></asp:Label></td>
                                <td>
                                    <asp:DropDownList ID="ddlFifthRow" runat="server">
                                        <asp:ListItem Text="FirstName" />
                                        <asp:ListItem Text="LastName" />
                                        <asp:ListItem Text="Address" />
                                        <asp:ListItem Text="City" /> 
                                        <asp:ListItem Text="State" />
                                        <asp:ListItem Text="Zip" />    
                                        <asp:ListItem Text="Phone" />
                                        <asp:ListItem Text="Healthcare" />
                                        <asp:ListItem Text="Diagnosis" />                   
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblSixthRow" runat="server" Text="Label"></asp:Label></td>
                                <td>
                                    <asp:DropDownList ID="ddlSixthRow" runat="server">
                                        <asp:ListItem Text="FirstName" />
                                        <asp:ListItem Text="LastName" />
                                        <asp:ListItem Text="Address" />
                                        <asp:ListItem Text="City" /> 
                                        <asp:ListItem Text="State" />
                                        <asp:ListItem Text="Zip" />   
                                        <asp:ListItem Text="Phone" />
                                        <asp:ListItem Text="Healthcare" />
                                        <asp:ListItem Text="Diagnosis" />                    
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                  <td><asp:Label ID="lblSeventhRow" runat="server" Text="Label"></asp:Label></td>
                                <td>
                                    <asp:DropDownList ID="ddlSeventhRow" runat="server">
                                        <asp:ListItem Text="FirstName" />
                                        <asp:ListItem Text="LastName" />
                                        <asp:ListItem Text="Address" />
                                        <asp:ListItem Text="City" /> 
                                        <asp:ListItem Text="State" />
                                        <asp:ListItem Text="Zip" />   
                                        <asp:ListItem Text="Phone" />
                                        <asp:ListItem Text="Healthcare" />
                                        <asp:ListItem Text="Diagnosis" />                    
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblEigthRow" runat="server" Text="Label"></asp:Label></td>
                                <td>
                                    <asp:DropDownList ID="ddlEigthRow" runat="server">
                                        <asp:ListItem Text="FirstName" />
                                        <asp:ListItem Text="LastName" />
                                        <asp:ListItem Text="Address" />
                                        <asp:ListItem Text="City" /> 
                                        <asp:ListItem Text="State" />
                                        <asp:ListItem Text="Zip" />   
                                        <asp:ListItem Text="Phone" />
                                        <asp:ListItem Text="Healthcare" />
                                        <asp:ListItem Text="Diagnosis" />                    
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblNinthRow" runat="server" Text="Label"></asp:Label></td>
                                <td>
                                    <asp:DropDownList ID="ddlNinthRow" runat="server">
                                        <asp:ListItem Text="FirstName" />
                                        <asp:ListItem Text="LastName" />
                                        <asp:ListItem Text="Address" />
                                        <asp:ListItem Text="City" /> 
                                        <asp:ListItem Text="State" />
                                        <asp:ListItem Text="Zip" />   
                                        <asp:ListItem Text="Phone" />
                                        <asp:ListItem Text="Healthcare" />
                                        <asp:ListItem Text="Diagnosis" />                    
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td><asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" /></td>
                            </tr>
                        </table>
                    </asp:Panel>
                    
                    <asp:Panel ID="Panel1" runat="server" Visible="false">
                        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                    </asp:Panel>                    
                </Content>
            </cc1:AccordionPane>
        </Panes>
    </cc1:Accordion>
</asp:Content>
